| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | import * as nAutoMetrics from '@financial-times/n-auto-metrics'; |
||
| 6 | describe('monitor', () => { |
||
| 7 | afterEach(() => { |
||
| 8 | jest.resetAllMocks(); |
||
|
|
|||
| 9 | }); |
||
| 10 | |||
| 11 | const app = { |
||
| 12 | use: jest.fn(), |
||
| 13 | }; |
||
| 14 | // const metrics = {}; |
||
| 15 | // const logger = {}; |
||
| 16 | |||
| 17 | it.skip('disable autoNext if it was set to false', () => { |
||
| 18 | setupMonitor({ app, autoNext: false }); |
||
| 19 | const targetOperation = () => {}; |
||
| 20 | monitor(targetOperation); |
||
| 21 | expect(nAutoMetrics.compose.mock.calls).toMatchSnapshot(); |
||
| 22 | }); |
||
| 23 | }); |
||
| 24 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.